<!DOCTYPE html>
<html xmlns:th="http://www.w3.org/1999/xhtml">
<head>
<meta charset="UTF-8">
<title>个人信息</title>
</head>
<center><h1>个人信息</h1></center>
<form method="get" action="/classtochoose"  th:object="${user}">
<center>
学号：
<input type="text" name="id" placeholder="请输入学号：">
<span class="validationError" th:if="${#fields.hasErrors('id')}"
th:errors="*{id}">iderror</span>
<br>
姓名：
<input type="text" name="name" placeholder="请输入姓名：">
<span class="validationError" th:if="${#fields.hasErrors('name')}"
th:errors="*{name}">nameerror</span>
<br>
专业：
<input type="text" name="profession" placeholder="请输入专业：">
<span class="validationError" th:if="${#fields.hasErrors('profession')}"
th:errors="*{profession}">professionerror</span>
<br>
年级：
<input type="text" name="grade" placeholder="请输入年级：">
<span class="validationError" th:if="${#fields.hasErrors('grade')}"
th:errors="*{grade}">gradeerror</span>
<br>
学院：
<input type="text" name="college" placeholder="请输入学院：">
<span class="validationError" th:if="${#fields.hasErrors('college')}"
th:errors="*{college}">collegeerror</span>
</center>
<br>
 <center><button class="button1">选择课程</button></center>
</form> 
</body>
</html>